cmake_minimum_required(VERSION 2.8.3)
project(rosbridge_patrol)

find_package(catkin REQUIRED)

catkin_python_setup()

catkin_package()

execute_process(COMMAND chmod +x "${CMAKE_CURRENT_SOURCE_DIR}/scripts/rosbridge_websocket.py")
execute_process(COMMAND chmod +x "${CMAKE_CURRENT_SOURCE_DIR}/scripts/patrol_rosbridge_websocket.py")

catkin_install_python(PROGRAMS
  scripts/rosbridge_websocket.py
  scripts/patrol_rosbridge_websocket.py
  DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

install(FILES
  launch/rosbridge_websocket.launch
  launch/patrol_rosbridge_websocket.launch
  DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
)
